<?php $this->render("header.php");?>

<div class="main_box">   
    <div class="w_986">
    <div class="f_l plate_756 plate">
        <div class="list_plate_bg top_bg"></div>
        <div class="list_plate_bg mid_bg" id="list_content_mid">
            <h2 class="h2_title">会议列表</h2>
            
            <div class="list_content" style=" margin-bottom:20px; min-height:200px;">
            
<?php 
$arr_status = array("未申请","待审核","未通过","已发布");
$arr_style = array("c_gray6","c_ora_red","c_red","c_green");
?>
            <?php foreach($this->list as $v):?>
            	<dl class="home_plate_dl">
                	<dt class="icon_all"><a target="_blank" href="<?php echo $v['url'];?>" title="<?php echo $v['name'];?>"><?php echo $v['name'];?></a></dt>
                    <dd class="meet_list_dd">
                    	<ul class="dd_ul">
                        	<li class="time">时间：<?php echo substr($v['startdate'], 0, 10);?></li>
                    		<li class="add">地点：<?php echo $v['address'];?></li>
                            <li class="status">状态：<span class="<?php echo $arr_style[$v['status']];?>"><?php echo $arr_status[$v['status']]?></span></li>
                            <li class="manage"><a href="<?php echo $this->baseUrl;?>/?c=meetcp&a=manage&mid=<?php echo $v['mid'];?>" target="_blank" title="管理会议" class="li_btn">管理会议</a></li>
                            <li class="f_r"><a href="<?php echo $this->baseUrl;?>/?c=meetcp&a=del&mid=<?php echo $v['mid'];?>" title="删除会议" onclick="javascript:return window.confirm('确认删除会议');" class="li_btn">删除会议</a></li>
                        </ul>
                        <div class="clear"></div>
                    </dd>                    
                </dl>
                <?php endforeach;?>
                <div class=" clear"></div>
            </div>
            
            
           
            <div class="list_page_box link_black">
                <div class="list_page f_r"> 
<?php
$ext ="";
$indexurl =$this->url($this->baseUrl,'meetcp', 'index', 'nowp=1' . $ext);
$lasturl = $this->url($this->baseUrl, 'meetcp', 'index', 'nowp=' . $this->page['totalpage'] . $ext);
print <<<EOT
                    <a href="{$indexurl}"><i>&lt;&lt;</i>首页</a>
EOT;
foreach ($this->pagenum as $v) {
	$url =$this->url($this->baseUrl, "meetcp", 'index', 'nowp=' . $v . $ext);
	if ($v != $this->page['nowp'])
		echo '<a href="' . $url . '" title="' . $v . '">' . $v . '</a>';
	else
		echo '<span class="selected">' . $v . '</span>';
}
print <<<EOT
<a href="{$lasturl}">末页<i>&gt;&gt;</i></a>
EOT;
?>

                </div>
                <div class="clear"></div>
            </div>
                    
            <div class="clear"></div>
        </div>
        <div class="list_plate_bg bot_bg"></div>
    </div>
    
    <div class="f_r plate_216">
        	<a href="<?php echo $this->baseUrl;?>/?c=meetcp&a=create" title="创建会议" class="meet_list_create_btn"></a>
    </div>    
    <div class="clear"></div>
    </div>    
    
</div>

<?php $this->render("footer.php");?>

<script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
<script type="text/javascript">
var navHeight = $('#list_content_mid').height();
$('#list_l_mid').css({'height':navHeight + 'px'});

$('#list_nav_year').hover(function() {
	$(this).children('.nav_year').show();
},function() {
	$(this).children('.nav_year').hide();
});
</script>
</body>
</html>
